﻿<?xml version="1.0" encoding="utf-8" ?>
<Feature>

	<BusinessRules>
		<BusinessRule name="getSkinIdsForSalFromCurrentTheme" security="disabled">
			<LocalClass name="PageEditing.CssPageEditBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="getSkinIdsForSalFromTheme" security="disabled">
			<LocalClass name="PageEditing.CssPageEditBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="getImageSizesForSal" security="disabled">
			<LocalClass name="PageEditing.CssPageEditBizRules,ScsCore" />
		</BusinessRule>
	</BusinessRules>

	<BusinessRules>
		<BusinessRule name="getPagesAvailableForEditing" security="disabled">
			<LocalClass name="PageEditing.PageEditBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="getPageEditorDetails" security="disabled">
			<LocalClass name="PageEditing.PageEditBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="getAvailablePageTemplates" security="disabled">
			<LocalClass name="PageEditing.PageEditBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="createSalPreviewPage" security="disabled">
			<LocalClass name="PageEditing.PageEditBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="updateEditedPage" security="disabled">
			<LocalClass name="PageEditing.PageEditBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="deletedEditedPage" security="disabled">
			<LocalClass name="PageEditing.PageEditBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="processPageTemplateUpdate" security="disabled">
			<LocalClass name="PageEditing.PageEditBizRules,ScsCore" />
		</BusinessRule>
	</BusinessRules>

	<BusinessRules>
		<BusinessRule name="getStandAloneArticleList" security="disabled">
			<LocalClass name="PageEditing.SalPageEditBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="getPageStandAloneArticleLists" security="disabled">
			<LocalClass name="PageEditing.SalPageEditBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="updateStandAloneArticleList" security="disabled">
			<LocalClass name="PageEditing.SalPageEditBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="getSalEditorType" security="disabled">
			<LocalClass name="PageEditing.SalPageEditBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="getSalHtml" security="disabled">
			<LocalClass name="PageEditing.SalPageEditBizRules,ScsCore" />
		</BusinessRule>

		<BusinessRule name="getAvailableSalTemplates" security="disabled">
			<LocalClass name="PageEditing.SalPageEditBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="getAvailableSplTemplates" security="disabled">
			<LocalClass name="PageEditing.SalPageEditBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="moveSalsToNewPageLayout" security="disabled" postExtends="processPageTemplateUpdate">
			<LocalClass name="PageEditing.SalPageEditBizRules,ScsCore" />
		</BusinessRule>
	</BusinessRules>

	<BusinessRules>
		<BusinessRule name="getMenuDetailsForEditing" security="disabled">
			<LocalClass name="PageEditing.MenuEditorBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="getMenuTypes" security="disabled">
			<LocalClass name="PageEditing.MenuEditorBizRules,ScsCore" />
		</BusinessRule>
		<BusinessRule name="updateMenuForEditing" security="disabled">
			<LocalClass name="PageEditing.MenuEditorBizRules,ScsCore" />
		</BusinessRule>
	</BusinessRules>

	<BusinessObjects>
		<BusinessObject type="StandAloneArticleList" key="id">
			<Field name="id" type="String"><NULL/></Field>
			<Field name="pid" type="String"><NULL/></Field>
			<Field name="ParentBizProc" type="String"><NULL/></Field>
			<Field name="BoxSkinId" type="String"><NULL/></Field>
			<Field name="ListTemplate" type="String"><NULL/></Field>
			<Field name="NavLink" type="String"><NULL/></Field>
			<Field name="ImageRes" type="String"><NULL/></Field>
			<Field name="MaxElements" type="String"><NULL/></Field>
			<Field name="ColumnElements" type="String"><NULL/></Field>
			<Field name="DetailLevel" type="String"><NULL/></Field>
			<Field name="IncludeSelf" type="String"><NULL/></Field>
			<Field name="EntireTree" type="String"><NULL/></Field>
			<Field name="AnimiType" type="String"><NULL/></Field>
			<Field name="ListCssClass" type="String"><NULL/></Field>
			<Field name="ChildCssClass" type="String"><NULL/></Field>
			<Field name="ReadMoreText" type="String"><NULL/></Field>
			<Field name="TreeName" type="String"><NULL/></Field>
			<Field name="ResetDepth" type="String"><NULL/></Field>
			<Field name="UsePagedDataSource" type="String"><NULL/></Field>
			<Field name="IncludeCounts" type="String"><NULL/></Field>

			<!-- The ESF field must be the first field after the fields above, which match up
			to the properties of the StandAloneArticleListDisplay class because code loops through these
			fields in the order they are defined to setup the new values in the sal and will stop when it
			hits the ESF.  The ESF field is not used for anything else. -->
			<Field name="ESF" type="Boolean"/>
			
			<Field name="filterSortCriteria" type="String" xmlOut="Element"><NULL/></Field>
			<Field name="unknownAttributes" type="String"/>

			<Field name="startPosInPage" type="Integer" />
			<Field name="lengthInPage" type="Integer" />

			<Field name="salHtml" type="String" />
			<Field name="componentType" type="String" />
			
			<Method name="pidFormula" language="jscript.NET">
				<Get>
					<![CDATA[
				var pid = self.getItem("pid");
				if(pid != null && (pid.indexOf(',') != -1 || pid.indexOf('$') != -1))
					return pid;
				return "";
			]]>
				</Get>
				<Set>
					<![CDATA[
					self.put("pidForm",val);
					self.put("pid", val);
					]]>
				</Set>
			</Method>
			<Field name="pidForm" type="String" />
			
			<Method name="pidArticle" language="jscript.NET">
				<Get>
					<![CDATA[
				var pid = self.getItem("pid");
				if(pid != null && pid.indexOf(',') == -1 && pid.indexOf('$') == -1)
					return pid;
				return "";
			]]>
				</Get>
				<Set>
					<![CDATA[
					self.put("pidArt",val);
					self.put("pid", val);
					]]>
				</Set>
			</Method>
			<Field name="pidArt" type="String" />

		</BusinessObject>

		<BusinessObject type="StandAloneArticleListPageInfo" key="pageName">
			<Field name="pageName" type="String"/>
			<Field name="pageShortName" type="String" />
			<Field name="title" type="String" />
			<Field name="baseTemplate" type="String"/>
			<Field name="securityAppFunction" type="String" />
			<Field name="securityLevel" type="Integer">-1</Field>
			<Field name="sals" type="List(StandAloneArticleList)"/>
			<Field name="pageContent" type="String" />
		</BusinessObject>

		<BusinessObject type="SalTemplate" key="name">
			<Field name="name" type="String" />
			<Field name="fullName" type="String" />
			<Field name="isFromBaseArtAssembly" type="Boolean">True</Field>
		</BusinessObject>

		<BusinessObject type="SalSkin" key="name">
			<Field name="name" type="String" />
		</BusinessObject>

		<BusinessObject type="MenuType" key="id">
			<Field name="id" type="String" />
			<Field name="name" type="String" />
		</BusinessObject>

		<BusinessObject type="SiteMenuItem" key="id">
			<Field name="id" type="Integer" />
			<Field name="displayName" type="String" />
			<Field name="image" type="Picture" />
			<Field name="url" type="String" />
			<Field name="reuseWindow" type="Boolean">True</Field>
			<Field name="securityAppFunction" type="String" />
		</BusinessObject>

		<BusinessObject type="SiteMenu" key="id">
			<Field name="id" type="Integer" />
			<Field name="name" type="String" />
			<Field name="menuItems" type="List(SiteMenuItem)" />
			<Field name="pagesAppliedTo" type="String" />
			<Field name="startPos" type="Integer" />
		</BusinessObject>

		<BusinessObject type="SiteMenuControl" key="menuType">
			<Field name="menuType" type="String" />
			<Field name="menus" type="List(SiteMenu)" />
		</BusinessObject>
	</BusinessObjects>

	<ApplicationData>
		<Entry name="SiteMenuTypes" type="IBizObjList.MenuType">
			<MenuTypes>
				<MenuType id="MainMenu" name="Main Menu" />
				<MenuType id="SecondMenu" name="Seconary Menu" />
				<MenuType id="FooterMenu" name="Footer" />
				<MenuType id="AltMenu" name="Alternate Menu" />
			</MenuTypes>

		</Entry>
	</ApplicationData>


	<ClassFactory id="BizProcs">
		<Class type="PageEditing.Gui.PageEditingManagementBizProc,ScsCore" name="pageEditor"/>
		<Class type="PageEditing.Gui.SalEditingManagementBizProc,ScsCore" name="salEditor"/>
		<Class type="PageEditing.Gui.MenuTypesBizProc,ScsCore" name="menuTypesEditor"/>
		<Class type="PageEditing.Gui.MenusBizProc,ScsCore" name="menuEditor"/>
		<Class type="PageEditing.Gui.MenuItemsBizProc,ScsCore" name="menuItemEditor"/>
	</ClassFactory>
</Feature>